const modules = import.meta.globEager("./*/index.vue");

const components = Object.values(modules).map((module) => {
  const mod = module.default || {};
  return mod;
});
// 使用所有组件
const install = (app) => {
  components.forEach((component) => {
    app.component(component.name, component);
  });
};

export default { install };
